import request from '@/sheep/request';

export default {
  // 获取聊天token
  msgsend: (data) =>
    request({
      url: '/api/chatkf/msgsend',
      method: 'POST',
      data,
      custom: {
        showError: false,
        showLoading: false,
      },
    }),
  userbind: (data) =>
    request({
      url: '/api/chatkf/userbind',
      method: 'POST',
      data,
      custom: {
        showError: false,
        showLoading: false,
      },
    }),
  msglog: (data) =>
    request({
      url: '/api/chatkf/msglog',
      method: 'GET',
      data,
      custom: {
        showError: false,
        showLoading: false,
      },
    }),
  unifiedToken: () =>
    request({
      url: 'index/unifiedToken',
      custom: {
        showError: false,
        showLoading: false,
      },
    }),
};
